package com.gxuwz.eschool;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;


public class PayActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pay);

        TextView currentTimeTextView = findViewById(R.id.time);
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
        String currentDateAndTime = sdf.format(new Date());
        currentTimeTextView.setText(currentDateAndTime);

        Button returnButton = findViewById(R.id.bt_rt);
        returnButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {



                // 跳转到主页面
                finish();
            }
        });
    }
}
